//
//  ViewController.swift
//  Huse
//
//  Created by William on 2018/12/13.
//  Copyright © 2018 技术研发-IOS. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        HuseNetworkTools.requestData(.get, URLString: "http://httpbin.org/get") { (result) in
            print(result)
        }
        
        HuseNetworkTools.requestData(.post, URLString: "http://httpbin.org/post", parameters: ["name": "JackieQu" as AnyObject]) { (result) in
            print(result)
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
       
    }

}

